package cn.com.oceansoft.osc.ms.persistence;

import cn.com.oceansoft.osc.ms.domain.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author wuzy
 * @created 2017-03-20-10:43
 * @email wzy@oceansoft.com.cn
 */
public interface IMailMapper {

    List<TaskMail> findSendQjMails();

    List<TaskMail> findSendShMails();

    List<TaskMail> findMailByTskId(@Param("tskId") String tskId);

    List<ExpressRouterEms> findEmsRouterByMainNo(@Param("mailNo") String mailNo);

    int updataStatus(@Param("guid") String guid,@Param("status") String status);

    int updateTskTypeCk(@Param("guid") String guid);

    TaskMail findMail(@Param("guid")  String guid);

    int updateSendTime(@Param("guid")  String guid);
    int updateBindTime(@Param("guid")  String guid);

    int updateMailNo(@Param("guid")  String guid,@Param("mailNo") String mailNo);

    int addRouterEms (ExpressRouterEms obj);

    int updateLogicId(@Param("guid") String guid,@Param("logicId") String logicId);

    int insertSyncPayBack(EmsSyncBack ent);

    int updateSyncTskMail(TaskMail ent);

    int updatePayBackStatus(@Param("status") String status,@Param("payOrderId") String payOrderId);

    int insertAyncRefundBack(EmsRefundBack ent);

    int updataStatusByPayOrderId(@Param("status") String status,@Param("payOrderId") String payOrderId);
}
